﻿using AuthorityManagement.Controllers;
using AuthorityManagement.Model;
using AuthorityManagement.Model.Dto.FileDto;
using AutoMapper;
using Mapster;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Reflection;

namespace AuthorityManagement.AutoMapper
{
    /// <summary>
    /// Mapper .暂未实现映射
    /// </summary>
    public class Mapper : IRegister
    {

        public void Register(TypeAdapterConfig config)
        {
        //    config.ForType<Test, User>()
        //    .Map(dest => dest.Id, src => src.id)
        //    .Map(dest => dest.UserName, src => src.name)
        //;
        //    config.ForType<User, Test>()
        //        .Map(dest => dest.id, src => src.Id)
        //        .Map(dest => dest.name, src => src.UserName)
        //    ;
        }
        //public void BasicMappingExtend(Test test)
        //{
        //    var config = new TypeAdapterConfig();
        //    config.Scan(Assembly.GetExecutingAssembly());
        //    var mapper = new Mapper(config);
        //    User user = mapper.Map<User>(test);
        //}
    }
}